using System;
using System.Collections.Generic;
using System.Text;
using AF_ORM.CORE;
namespace Bussiness.Entity
{
                

     public class PT_ToolInBillEntity:AF_ORM.CORE.BaseEntity
    {
         public PT_ToolInBillEntity()
         {
             tableName = "PT_ToolInBill";


			 fieldInfos.Add(new FieldInfo("PT_ToolInBill","Amount","Amount","double",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ToolInBill","BillNo","BillNo","string",20,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ToolInBill","Cost","Cost","double",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ToolInBill","CreatedBy","CreatedBy","string",50,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ToolInBill","CreatedDate","CreatedDate","DateTime",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ToolInBill","DiscountReason","DiscountReason","string",2,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ToolInBill","Id","Id","int",0,true,false,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ToolInBill","IsDeleted","IsDeleted","bool",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ToolInBill","IsOil","IsOil","bool",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ToolInBill","OriginalPrice","Giá gốc (chỉ dành cho phụ tùng tự mua)","double",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ToolInBill","Part_Name","Part_Name","string",100,false,true,true,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ToolInBill","Part_No","Part_No","string",50,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ToolInBill","Price_After_Discount","Đối với phụ tùng tự mua thì đây là giá bán","double",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ToolInBill","QTY","QTY","int",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ToolInBill","ServiceType","ServiceType","string",2,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ToolInBill","ToolType","0: phu tung trong, 1: phu tung ngoai, 2: phu tung tu mua","int",0,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ToolInBill","UpdatedBy","UpdatedBy","string",50,false,true,false,false,"","",""));
			 fieldInfos.Add(new FieldInfo("PT_ToolInBill","UpdatedDate","UpdatedDate","DateTime",0,false,true,false,false,"","",""));
         }
       //properties
                    
		 protected double m_Amount;
		 protected string m_BillNo;
		 protected double m_Cost;
		 protected string m_CreatedBy;
		 protected DateTime m_CreatedDate;
		 protected string m_DiscountReason;
		 protected int m_Id;
		 protected bool m_IsDeleted;
		 protected bool m_IsOil;
		 protected double m_OriginalPrice;
		 protected string m_Part_Name;
		 protected string m_Part_No;
		 protected double m_Price_After_Discount;
		 protected int m_QTY;
		 protected string m_ServiceType;
		 protected int m_ToolType;
		 protected string m_UpdatedBy;
		 protected DateTime m_UpdatedDate;

		 public double Amount

          { 
                get { 
                    return m_Amount;}

                set{m_Amount=value;

                    GetField("Amount").Set();
                    GetField("Amount").IsNull=(value == null);           
                    }
          }
		 public string BillNo

          { 
                get { 
                    return m_BillNo;}

                set{m_BillNo=value;

                    GetField("BillNo").Set();
                    GetField("BillNo").IsNull=(value == null);           
                    }
          }
		 public double Cost

          { 
                get { 
                    return m_Cost;}

                set{m_Cost=value;

                    GetField("Cost").Set();
                    GetField("Cost").IsNull=(value == null);           
                    }
          }
		 public string CreatedBy

          { 
                get { 
                    return m_CreatedBy;}

                set{m_CreatedBy=value;

                    GetField("CreatedBy").Set();
                    GetField("CreatedBy").IsNull=(value == null);           
                    }
          }
		 public DateTime CreatedDate

          { 
                get { 
                    return m_CreatedDate;}

                set{m_CreatedDate=value;

                    GetField("CreatedDate").Set();
                    GetField("CreatedDate").IsNull=(value == null);           
                    }
          }
		 public string DiscountReason

          { 
                get { 
                    return m_DiscountReason;}

                set{m_DiscountReason=value;

                    GetField("DiscountReason").Set();
                    GetField("DiscountReason").IsNull=(value == null);           
                    }
          }
		 public int Id

          { 
                get { 
                    return m_Id;}

                set{m_Id=value;

                    GetField("Id").Set();
                    GetField("Id").IsNull=(value == null);           
                    }
          }
		 public bool IsDeleted

          { 
                get { 
                    return m_IsDeleted;}

                set{m_IsDeleted=value;

                    GetField("IsDeleted").Set();
                    GetField("IsDeleted").IsNull=(value == null);           
                    }
          }
		 public bool IsOil

          { 
                get { 
                    return m_IsOil;}

                set{m_IsOil=value;

                    GetField("IsOil").Set();
                    GetField("IsOil").IsNull=(value == null);           
                    }
          }
		 public double OriginalPrice

          { 
                get { 
                    return m_OriginalPrice;}

                set{m_OriginalPrice=value;

                    GetField("OriginalPrice").Set();
                    GetField("OriginalPrice").IsNull=(value == null);           
                    }
          }
		 public string Part_Name

          { 
                get { 
                    return m_Part_Name;}

                set{m_Part_Name=value;

                    GetField("Part_Name").Set();
                    GetField("Part_Name").IsNull=(value == null);           
                    }
          }
		 public string Part_No

          { 
                get { 
                    return m_Part_No;}

                set{m_Part_No=value;

                    GetField("Part_No").Set();
                    GetField("Part_No").IsNull=(value == null);           
                    }
          }
		 public double Price_After_Discount

          { 
                get { 
                    return m_Price_After_Discount;}

                set{m_Price_After_Discount=value;

                    GetField("Price_After_Discount").Set();
                    GetField("Price_After_Discount").IsNull=(value == null);           
                    }
          }
		 public int QTY

          { 
                get { 
                    return m_QTY;}

                set{m_QTY=value;

                    GetField("QTY").Set();
                    GetField("QTY").IsNull=(value == null);           
                    }
          }
		 public string ServiceType

          { 
                get { 
                    return m_ServiceType;}

                set{m_ServiceType=value;

                    GetField("ServiceType").Set();
                    GetField("ServiceType").IsNull=(value == null);           
                    }
          }
		 public int ToolType

          { 
                get { 
                    return m_ToolType;}

                set{m_ToolType=value;

                    GetField("ToolType").Set();
                    GetField("ToolType").IsNull=(value == null);           
                    }
          }
		 public string UpdatedBy

          { 
                get { 
                    return m_UpdatedBy;}

                set{m_UpdatedBy=value;

                    GetField("UpdatedBy").Set();
                    GetField("UpdatedBy").IsNull=(value == null);           
                    }
          }
		 public DateTime UpdatedDate

          { 
                get { 
                    return m_UpdatedDate;}

                set{m_UpdatedDate=value;

                    GetField("UpdatedDate").Set();
                    GetField("UpdatedDate").IsNull=(value == null);           
                    }
          }

}
}
